import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'animate.css'
import { 
  Tab, 
  Tabs, 
  Icon, 
  NavBar, 
  Popup, 
  Button, 
  Search, 
  Badge, 
  Tag, 
  Card, 
  Loading, 
  Empty, 
  Checkbox, 
  Stepper 
} from 'vant'
import 'vant/lib/index.css'
import { getCurrentUser } from './utils/userStore'



createApp(App)
  .use(router)
  .use(ElementPlus)
  .use(Tab)
  .use(NavBar)
  .use(Icon)
  .use(Tabs)
  .use(Popup)
  .use(Button)
  .use(Search)
  .use(Badge)
  .use(Tag)
  .use(Card)
  .use(Loading)
  .use(Empty)
  .use(Checkbox)
  .use(Stepper)
  .mount('#app')

// 应用启动时初始化用户信息
getCurrentUser()
